import request from '@/utils/request'

// 批量查询药品维护信息
export function listInfo(query) {
    return request({
        url: '/drug/info/list',
        method: 'get',
        params: query
    })
}

// 查询单个生药品维护信息
export function getInfo(id) {
    return request({
        url: '/drug/info/' + id,
        method: 'get'
    })
}

// 新增生产厂家维护信息
export function addInfo(data) {
    return request({
        url: '/drug/info',
        method: 'post',
        data: data
    })
}

// 修改生产厂家维护信息
export function updateInfo(data) {
    return request({
        url: '/drug/info',
        method: 'put',
        data: data
    })
}

// 删除生产厂家维护信息
export function delInfo(id) {
    return request({
        url: '/drug/info/' + id,
        method: 'delete'
    })
}

export function changeUserStatus(id, status) {
    return request({
        url: "/drug/info/" + id + "/" + status,
        method: "put"
    })
}



